﻿namespace OasisCiq.Xpil
{
    using System.Collections.Specialized;
    using CommonTypes;
    using External;
    using XS;

    /// <summary>
    /// Personal habits. E.g. smoking, drinking, gambling, etc.
    /// </summary>
    public class Habit : CTString, IDataQualityGroup, IExtendedAttributes
    {
        public Habit(string value) 
            : base(value)
        {
        }

        /// <summary>
        /// Category/type of habit. e.g. sports, food, reading, etc. 
        /// If "Hot Drinks" is type, then text for Habit could be "Strong Black Coffee"
        /// </summary>
        public virtual HabitTypeList Type { get; set; }

        /// <summary>
        /// This attribute indicates what level of trust can be given to the parent element.
        /// Omit this attribute if the data quality is unknown. If the data quality is known,
        /// the value is "Valid, else "InValid"
        /// </summary>
        public virtual DataQualityTypeList DataQualityType { get; set; }

        /// <summary>
        /// Date the data quality is valid from
        /// </summary>
        public virtual XSDateTime ValidFrom { get; set; }

        /// <summary>
        /// Date the data quality is valid to
        /// </summary>
        public virtual XSDateTime ValidTo { get; set; }

        public virtual NameValueCollection ExtendedAttributes { get; set; }
    }
}
